import ElementUI from 'element-ui';
import i18n from '@/lang'

export default function(previewComponent) {
	return {
		i18n,
		ElementUI,
		render(h) {
			return h(
				'div',
				{
					props: {
						id: 'v-app'
					}
				},
				['', h(Object.assign(previewComponent))]
			)
		}
	}
}
